package twPkg;

import java.util.List;

import twitter4j.Status;

public class Tw_main {

	  public static void main(String[] args) {
	       
		  //List<Status> twts = null;
		  List<Status> tweets = SearchTweets.getTweets("coke");
		  try{
			  for (Status tweet : tweets) {
	                System.out.println("@" + tweet.getUser().getScreenName() + " - " + tweet.getText());
	            }
			  System.out.println(tweets.size());
		  }
		  catch (Exception e){
			  e.printStackTrace();
		         System.out.println("Failed to search tweets: " + e.getMessage());
		         System.exit(-1);
		  }
	        
	    }

}
